package vip.george.order.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;
import vip.george.common.entity.ScOrder;
import vip.george.common.mapper.ScOrderMapper;
import vip.george.order.dao.OrderDao;

/**
 * @author george
 * @since 2023/7/5
 * <p>orderDao</p>
 */
@Repository
public class OrderDaoImpl extends ServiceImpl<ScOrderMapper, ScOrder> implements OrderDao {
    @Override
    public int insertEntity(ScOrder order) {
        return this.getBaseMapper().insert(order);
    }

    @Override
    public ScOrder selectById(String id) {
        return this.getBaseMapper().selectById(id);
    }
}
